﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using System.Globalization;

namespace DayOfWeekService
{
  
    public class DayOfWeekServiceImplementation : IDayOfWeekService
    {

        public string GetBgDay(DateTime date)
        {
            string result;
            CultureInfo bulgarian= new CultureInfo("BG-bg");
            result = bulgarian.DateTimeFormat.DayNames[(int) date.DayOfWeek];

            //switch (date.DayOfWeek) 
            //{
            //    case DayOfWeek.Monday: result= "Понеделник"; break;
            //    case DayOfWeek.Tuesday: result = "Вторник"; break;
            //    case DayOfWeek.Wednesday: result = "Сряда"; break;
            //    case DayOfWeek.Thursday: result = "Четвъртък"; break;
            //    case DayOfWeek.Friday: result = "Петък"; break;
            //    case DayOfWeek.Saturday: result = "Събота"; break;
            //    case DayOfWeek.Sunday: result = "Неделя"; break;
            //}
            return result;
        }


    }
}
